import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import {
    VxeButton,
    VxeButtonGroup,
    VxeDrawer,
    VxeForm,
    VxeFormGroup,
    VxeFormItem,
    VxeIcon,
    VxeLoading,
    VxeModal,
    VxePager,
    VxePrint,
    VxeTooltip,
    VxeUpload
  } from 'vxe-pc-ui'

  import {
    VxeUI,
    VxeTable,
    VxeColumn,
    VxeColgroup,
    VxeGrid,
    VxeToolbar,
 
  } from 'vxe-table'
import App from './App.vue'
import router from './router'
import zhCN from 'vxe-table/lib/locale/lang/zh-CN' // 导入中文语言包
import 'vxe-table/styles/cssvar.scss'
VxeUI.setI18n('zh-CN', zhCN)
VxeUI.setLanguage('zh-CN')


function lazyVxeUI (app) {
    app.use(VxeButton)
    app.use(VxeButtonGroup)
    app.use(VxeDrawer)
    app.use(VxeForm)
    app.use(VxeFormGroup)
    app.use(VxeFormItem)
    app.use(VxeIcon)
    app.use(VxeLoading)
    app.use(VxeModal)
    app.use(VxePager)
    app.use(VxePrint)
    app.use(VxeTooltip)
    app.use(VxeUpload)
  }

  function lazyVxeTable (app) {
    app.use(VxeTable)
    app.use(VxeColumn)
    app.use(VxeColgroup)
    app.use(VxeGrid)
    app.use(VxeToolbar)

  }
const app = createApp(App)


app.use(createPinia())
app.use(router)
app.use(lazyVxeUI)
app.use(lazyVxeTable)

app.mount('#app')
